<?php
    if(1==2){$HttpResult = new HttpResult();}
    $HttpContentResult = $HttpResult->getHttpContentResult();
	$jogo = $HttpContentResult->jogo;
	
include_once 'library/facil3/utils/Pagination.class.php';
$head = new HtmlHeader($HttpContentResult->getHeader());    
$head->addCSS('style', 'css/');
$head->addCSS('layout', 'css/');


//<!-- SWF OBJECT -->
$head->addJS('swfobject', 'js/swfobject/');

// JS
$head->addJS('jquery-1.3.2.min', 'js/');
$head->addJS('cufon-yui', 'js/');
$head->addJS('cufon-replace', 'js/');
$head->addJS('Swis721_BT_400.font', 'js/');
$head->addJS('ie_png', 'js/');

$head->show();



?>
<!--[if lte IE 7]>
    <script type="text/javascript" src="js/ie_png.js"></script>
       <script type="text/javascript">
           DD_belatedPNG.fix('.links');
       </script>
<![endif]-->
<body id="page1">
	<!--header -->
	<?php 
	include Config::getFolderView("parts/header.php");
	?>
	<!--header end-->
	<div id="content">
		<div class="main">
			<div class="indent">
				<div class="container">
					
						<div class="box margin">
							<div class="indent">
								<?php
									include Config::getFolderView("parts/banner768x90.php");
								?>
							</div>
							<div class="indent">
								
								<h3><span><strong><?php echo $jogo->name;?></strong></span></h3>
								
									<div class="container border-bg">
										<?php echo $jogo->content;?>
										<br />
										<a href="javascript:window.back(1)" class="link"><span><span>VOLTAR</span></span></a>
										<?php if(UserClient::getTypeId() == Config::ADMIN_USER_TYPE_ID){?>
											<a href="<?php echo Config::getRootPath("admin/jogo/delete/id.".$jogo->id); ?>" class="link"><span><span>Apagar</span></span></a>
											<br />
											<br />
											<br />
											votar: 
											<?php for($i = 1; $i < 6; $i++){ ?>
											<a href="<?php echo Config::getRootPath("admin/jogo/rank/id.".$jogo->id."/pontos.$i") ?>"><?php echo $i; ?></a> |
											<?php } ?>
										<?php } ?>
										
										
									</div>
									<iframe src="http://www.facebook.com/plugins/like.php?href=<?php 
										include_once "library/facil3/utils/Navigation.class.php";
										
										echo urlencode("http://".Navigation::getURIDomain()."/".Navigation::getURI("", Navigation::URI_RETURN_TYPE_STRING)); ?>"
						        allowTransparency="true"  scrolling="no" allowTransparency="true" frameborder="0"></iframe>
								<?php include Config::getFolderView("parts/bannerHorizontal.php"); ?>
							</div>
						</div>
					
				</div>
			</div>
		</div>
	</div>
	<!--footer -->
	<?php
	include Config::getFolderView("parts/footer.php");
	?>
	
	<!--footer end-->
   <script type="text/javascript"> Cufon.now(); </script>
</body>

</html>